package com.huibo.aigou.domain;

import java.util.ArrayList;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

@Data
@TableName("t_product_type")
public class ProductType {

	@TableId(type=IdType.AUTO)
	private Long id;
	
	@TableField("createTime")
	private Long createTime;
	
	@TableField("updateTime")
	private Long updateTime;
	
	private String name;
	
	private Long pid;
	
	private String logo;
	
	private String description;
	
	@TableField("sortIndex")
	private Integer sortIndex;
	
	private String path;
	
	@TableField("totalCount")
	private Integer totalCount;
	
	@TableField("seoTitle")
	private String seoTitle;
	
	@TableField("seoKeywords")
	private String seoKeywords;
	
	private Long typeTemplateId;
	
	@TableField(exist = false)
	private List<ProductType> productTypes = new ArrayList<>();
	
}
